entry: get_layout_location coords are already content relative
authorTimm Bäder <mail@baedert.org>
Thu, 15 Jun 2017 08:28:58 +0000 (10:28 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000 (21:27 -0400)
gtk/gtkentry.c

index a8fa3dd1f412532fb9f6cdd267611e4d02b14cdd..13e63d0b091eba6c25d46b5dcfa77a5fa5eb838c 100644 (file)
@@ -7689,15 +7689,7 @@ gtk_entry_get_layout_offsets (GtkEntry *entry,
   gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation);
   gtk_entry_get_text_allocation (entry, &text_allocation);
 
-  /* this gets coords relative to text area */
   get_layout_position (entry, x, y);
-
-  /* convert to widget coords */
-  if (x)
-    *x += text_allocation.x - allocation.x;
-
-  if (y)
-    *y += text_allocation.y - allocation.y;
 }